package com.github.baichuan.application.scaffold.dto.application;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Getter;

@Schema(title = "应用初始化设置")
@Getter
public class InitForm {
    @Schema(title = "应用程序代码")
    @NotBlank(message = "应用程序代码不能为空")
    private String application;

    @Schema(title = "登录名")
    @NotBlank(message = "登录名不能为空")
    @Size(min = 5, message = "登录名不能少于5个字符")
    private String loginName;

    @Schema(title = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
